package com.goldentrail.goldenapp.client;

import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;

import org.json.JSONArray;

import com.goldentrail.dataobject.Node;
import com.google.gwt.rpc.client.RpcService;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.ui.TextBox;

/**
 * The client side stub for the RPC service.
 */

@RemoteServiceRelativePath("upload")
public interface UploadService extends RemoteService {
	
	String upload(String Username, String filename) throws IllegalArgumentException;
	
	ArrayList<String> retrieveGraph(String runID);
	
	String convertGraph();
	
	ArrayList<String> retrieveCompleteGraph(ArrayList<String> startNodes, ArrayList<String> throughNodes, ArrayList<String> endNodes, String runID);
	
	String getRunIDs();
	
	String getInvocationIDs(String runID);
	
	String getDataArtifacts(String runID);
	
	String getRecentResults();
	
	String queryLoV(String provType);
	
	String[][] getRecentOtherResults();
	
	String[][] getRecentInputResults();
	
	String[][] getRecentOutputResults();
	
	String[][] queryDB(String provType, String dataCode, ArrayList<String> startNodes, ArrayList<String> throughNodes, ArrayList<String> endNodes);
}